package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *    云对讲通行记录实体类
 * </desc>
 *
 * @createDate 2017-09-30
 */
@ItlTables("device_cloud_intercom_record")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DeviceCloudIntercomRecordPO extends BasePO implements Serializable {

    @ItlField("user_id")
    private String userId;             //用户ID

    @ItlField("device_unique")
    private String deviceUnique;                //设备序列号

    @ItlField("project_id")
    private String projectId;        //项目编号

    @ItlField("open_type")
    private Integer openType;                   //通行方式,4-电话开门,5-访客开门,6-自主开门,7-密码开门

    @ItlField("pass_time")
    private Date passTime;                          //通行时间

    @ItlField("upload_time")
    private Date uploadTime;                        //上传时间，将通行记录同步给一卡通的时间

    @ItlField("qq_num")
    private String qqNum;                       //QQ号码,开门响应的QQ号码

    @ItlField("room_num")
    private String roomNum;                 //房间编号

    @ItlField("is_open")
    private Integer isOpen;                 //开门结果,0表示开门成功，1表示开门失败或拒绝开门

    @ItlField("begin_visit_time")
    private Date beginVisitTime;                //开始通话时间

    @ItlField("end_visit_time")
    private Date endVisitTime;              //结束通话时间

    @ItlField("call_phone_no")
    private String callPhoneNo;             //被呼叫的电话

    @ItlField("open_count")
    private Integer openCount;              //一次开门请求的次数，蓝牙开放统计数据

    @ItlField("face_pic_url")
    private String facePicUrl;              //人脸识别图片

    @ItlField("timescount")
    private Integer timescount;         //是否计次：1是 0否

    @ItlField("last_pass_count")
    private Integer lastPassCount;      //剩余通行次数

    @ItlField("qrcode_source")
    private Integer qrcodeSource;               //二维码来源

    @ItlField("online")
    private Integer online;                 //sdk类型： 1在线 2离线

    @ItlField("room_detail")
    private String roomDetail;                  //房间信息 楼栋单元房间相拼接

    @ItlField("source")
    private Integer source;                     //通行来源
}